package com.yunsc.product.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.common.validator.ValidationGroups;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-04-19 14:24
 */
@Data
public class GoodsServiceDTO implements Serializable {
    @NotNull(message = "服务id不能为空", groups = {ValidationGroups.Update.class, ValidationGroups.Delete.class})
    @JsonProperty("serviceId")
    private Integer serviceId;
    private GoodsServiceForm form;
    @Data
    public static class GoodsServiceForm {
        private String name;
        private String summary;
        private Integer isDefault;
        private Integer status;
        private Integer sort;
    }
}
